﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddOutterPhotos.aspx.cs" Inherits="Web.admin.OutterManage.AddOutterPhotos"   validateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../js/WebCalendar.js" type="text/javascript"></script>
     <script type="text/javascript" language="javascript">
         function CheckEmpty() {
             var emptyNmber = 0;
             $(".txtInput").each(function () {
                 if ($(this).val() == "")
                     emptyNmber = emptyNmber + 1;
             });
             if (emptyNmber > 0) {
                 alert("所有项为必填项，不允许为空");
                 return false;
             }
             else
                 return true;
         };

         function ClearToEmpty() {
             $(".txtInput").each(function () {
                 $(this).val("");
             });
             return false;
         };
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img src="../images/main_hl.gif" /></td>
                        <td ><img src="../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>获奖证书</span></td>
                        <td><img src="../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>

   <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle"style="height:auto!important; height:853px !important;">
            <div class="navigation">首页&gt;参赛申请备案&gt;获奖证书</div>
            <div class="submitTable">
                <table >
                    <tr>
                        <th>图片标题: <input type="hidden" id="PictureId" runat="server" /><input type="hidden" id="ParticipantsId" runat="server" /></th>
                        <td><asp:TextBox ID="txtTitle" runat="server" CssClass="txtInput" ></asp:TextBox><label>*</label></td>
                    </tr>
                    <tr>
                        <th>日期：</th>
                        <td><asp:TextBox ID="txtDate" onclick="SelectDate(this,'yyyy-MM-dd hh:mm')" runat="server" CssClass="txtInput" ></asp:TextBox><label>*</label></td>
                    </tr>
                    <tr id="FileTR" runat="server">
                        <th>选择图片：</th>
                        <td><asp:FileUpload ID="FileUpload1" CssClass="txtInput" runat="server" /></td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <asp:Image ID="Image1" runat="server" /></td>
                    </tr>
                    <tr><td><asp:Button ID="btn_Save"  OnClientClick="return CheckEmpty();" 
                            runat="server" Text="保存" 
                            CssClass="btn_submit" onclick="btn_Save_Click" Height="31px"  Width="87px" /></td><td><asp:Button ID="btn_Reset" OnClientClick="return ClearToEmpty();" runat="server" Text="重置"  CssClass="btn_reset"/></td></tr>
                </table>
            </div>
        </div>
        <div class="middle_right"></div>
    </div>
    </form>
</body>
</html>
